import http from "../utils/http/http.js";

const add = (data) => {
    return http.post("/courseDirectories/create", data);
}
const update = (data) => {
    return http.put("/courseDirectories/update", data);
}
const delContent = (data) => {
    return http.del("/courseDirectories/delete", data);
}
const list = (data) => {
    return http.get("/courseDirectories/tree", data);
}
export default {
    add,update,delContent,list
}